#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b,n;
    scanf("%d",&n);
    for(a=1;a<=n;a++)
    {
        for(b=1;b<=a+n-1;b++)
        {
            if(b<=(n-a))
                printf(" ");
            else
                printf("*");
        }
        printf("\n");
    }
    for(a=n-1;a>=1;a--)
    {
        for(b=1;b<=a+n-1;b++)
        {
            if(b<=(n-a))
                printf(" ");
            else
            printf("*");
        }
        printf("\n");
    }


    return 0;
}
            

